package com.example.zaq.model;

import lombok.Data;

import java.io.Serializable;

//20210520 zaq  引入

/**
 * asp_kind_kind
 * @author 
 */
@Data
public class AspKindKind implements Serializable {
    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;

    /**
     * 支付用途：水果、服饰、书籍...
     */
    private Integer kId;

    /**
     * 名称
     */
    private String kName;

    /**
     * 1|支出；2|收入
     */
    private Object kFlag;

    /**
     * 账簿类型，0|通用；-1|用户新建
     */
    private Integer kBId;

    /**
     * 用户ID，-1表示非用户创建
     */
    private Integer uId;

    /**
     * 删除标志，1表示删除
     */
    private Boolean delete;

    private static final long serialVersionUID = 1L;

    public Integer getkId() {
        return kId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public void setkId(Integer kId) {
        this.kId = kId;
    }

    public String getkName() {
        return kName;
    }

    public void setkName(String kName) {
        this.kName = kName;
    }

    public Object getkFlag() {
        return kFlag;
    }

    public void setkFlag(Object kFlag) {
        this.kFlag = kFlag;
    }

    public Integer getkBId() {
        return kBId;
    }

    public void setkBId(Integer kBId) {
        this.kBId = kBId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspKindKind other = (AspKindKind) that;
        return (this.getkId() == null ? other.getkId() == null : this.getkId().equals(other.getkId()))
            && (this.getkName() == null ? other.getkName() == null : this.getkName().equals(other.getkName()))
            && (this.getkFlag() == null ? other.getkFlag() == null : this.getkFlag().equals(other.getkFlag()))
            && (this.getkBId() == null ? other.getkBId() == null : this.getkBId().equals(other.getkBId()))
            && (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getkId() == null) ? 0 : getkId().hashCode());
        result = prime * result + ((getkName() == null) ? 0 : getkName().hashCode());
        result = prime * result + ((getkFlag() == null) ? 0 : getkFlag().hashCode());
        result = prime * result + ((getkBId() == null) ? 0 : getkBId().hashCode());
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", kId=").append(kId);
        sb.append(", kName=").append(kName);
        sb.append(", kFlag=").append(kFlag);
        sb.append(", kBId=").append(kBId);
        sb.append(", uId=").append(uId);
        sb.append(", delete=").append(delete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}